-- -- MOVIE PAGE Script (from SkySurfing) -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - on enterFrame global gMovieName, gMovie, gSoloMode global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon global gLastFrame, gMusicOn, gCaptionOn global gLocalSound global gMovieChannel global gCurPath, gNavMode, gControlPanel global gMap1Icon, gMap2Icon, gPlaceOfOrigin, gMultiPageSidebar global gMovie1, gMovie2, gMovie3, gMovie4, gMovie5, gMovie6, gMoviePage global gPlayMovie, gPauseMovie, gRewindMovie if voidP("gLastFrame") then set gLastFrame = 0 if voidP("gNavMode") then set gNavMode = "chapter" if voidP("gLocalSound") then set gLocalSound = FALSE set gPlaceOfOrigin = 0 set gMultiPageSidebar = FALSE set gNavMode = "chapter" set gMovieChannel = 13 -- gControlIcon is set in the "Intro" script set gPlayMovie = 5 set gPauseMovie = 6 set gRewindMovie = 7 set gMovie1 = 14 set gMovie2 = 15 set gMovie3 = 16 set gMovie4 = 17 set gMovie5 = 18 set gMovie6 = 19 -- make sure the control panel is updated in every way if objectP(gControlPanel) then tell window "Control Panel" setIconStatus "music", gMusicOn setIconStatus "caption", gCaptionOn end tell end if if the frame = label("C2") then set gLastFrame = the frame set gLocalSound = FALSE end if puppetsprite gIndexIcon TRUE puppetsprite gControlIcon TRUE puppetsprite gMovie1 TRUE puppetsprite gMovie2 TRUE puppetsprite gMovie3 TRUE puppetsprite gMovie4 TRUE puppetsprite gMovie5 TRUE puppetsprite gMovie6 TRUE set the member of sprite gMovie1 to member "movie-1-on" set the member of sprite gMovie2 to member "movie-2-on" set the member of sprite gMovie3 to member "movie-3-on" set the member of sprite gMovie4 to member "movie-4-on" set the member of sprite gMovie5 to member "movie-5-on" set the member of sprite gMovie6 to member "movie-6-on" set the member of sprite gControlIcon to member "control-icon" set the member of sprite gIndexIcon to member "index-icon" if rollOver(gMovie1) then set the member of sprite gMovie1 to member "movie-1-on-hot" set the text of member "Message Text" to "Introduction to Skysurfing..." else if rollOver(gMovie2) then set the member of sprite gMovie2 to member "movie-2-on-hot" set the text of member "Message Text" to "Dive 1..." else if rollOver(gMovie3) then set the member of sprite gMovie3 to member "movie-3-on-hot" set the text of member "Message Text" to "Dive 2..." else if rollOver(gMovie4) then set the member of sprite gMovie4 to member "movie-4-on-hot" set the text of member "Message Text" to "Dive 3..." else if rollOver(gMovie5) then set the member of sprite gMovie5 to member "movie-5-on-hot" set the text of member "Message Text" to "Dive 4..." else if rollOver(gMovie6) then set the member of sprite gMovie6 to member "movie-6-on-hot" set the text of member "Message Text" to "Dive 5..." else if rollOver(gControlIcon) then set the member of sprite gControlIcon to member "control-icon-hot" set the text of member "Message Text" to "Reveal the control panel" else if rollOver(gIndexIcon) then set the member of sprite gIndexIcon to member "index-icon-hot" set the text of member "Message Text" to "Return to Table of Contents" else set the text of member "Message Text" to "Click on one of the icons..." end if end enterFrame -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - on exitFrame global gMovieName, gMovie, gSoloMode global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon global gLastFrame if gSoloMode = FALSE then keepmusic go to the frame end exitFrame -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - on MouseUp global gMovieName, gMovie, gSoloMode global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon global gLastFrame, gHotText, gHotTextLabel, gPlaceOfOrigin global gMap1Icon, gMap2Icon, gPlaceOfOrigin, gSidebarOfOrigin global gMovie1, gMovie2, gMovie3, gMovie4, gMovie5, gMovie6, gMoviePage, gWhichMovie case the clickOn of gMovie1: set the member of sprite gMovie1 to member "movie-1-on" set the member of sprite gMovie2 to member "movie-2-off" set the member of sprite gMovie3 to member "movie-3-off" set the member of sprite gMovie4 to member "movie-4-off" set the member of sprite gMovie5 to member "movie-5-off" set the member of sprite gMovie6 to member "movie-6-off" go to frame "M1" gMovie2: set the member of sprite gMovie1 to member "movie-1-off" set the member of sprite gMovie2 to member "movie-2-on" set the member of sprite gMovie3 to member "movie-3-off" set the member of sprite gMovie4 to member "movie-4-off" set the member of sprite gMovie5 to member "movie-5-off" set the member of sprite gMovie6 to member "movie-6-off" go to frame "M2" gMovie3: set the member of sprite gMovie1 to member "movie-1-off" set the member of sprite gMovie2 to member "movie-2-off" set the member of sprite gMovie3 to member "movie-3-on" set the member of sprite gMovie4 to member "movie-4-off" set the member of sprite gMovie5 to member "movie-5-off" set the member of sprite gMovie6 to member "movie-6-off" go to frame "M3" gMovie4: set the member of sprite gMovie1 to member "movie-1-off" set the member of sprite gMovie2 to member "movie-2-off" set the member of sprite gMovie3 to member "movie-3-off" set the member of sprite gMovie4 to member "movie-4-on" set the member of sprite gMovie5 to member "movie-5-off" set the member of sprite gMovie6 to member "movie-6-off" go to frame "M4" gMovie5: set the member of sprite gMovie1 to member "movie-1-off" set the member of sprite gMovie2 to member "movie-2-off" set the member of sprite gMovie3 to member "movie-3-off" set the member of sprite gMovie4 to member "movie-4-off" set the member of sprite gMovie5 to member "movie-5-on" set the member of sprite gMovie6 to member "movie-6-off" go to frame "M5" gMovie6: set the member of sprite gMovie1 to member "movie-1-off" set the member of sprite gMovie2 to member "movie-2-off" set the member of sprite gMovie3 to member "movie-3-off" set the member of sprite gMovie4 to member "movie-4-off" set the member of sprite gMovie5 to member "movie-5-off" set the member of sprite gMovie6 to member "movie-6-on" go to frame "M6" gControlIcon: openControlPanel gNextIcon: puppetsprite gMovie1 FALSE puppetsprite gMovie2 FALSE puppetsprite gMovie3 FALSE puppetsprite gMovie4 FALSE puppetsprite gMovie5 FALSE puppetsprite gMovie6 FALSE go to frame "Intro" gPreIcon: -- end case end MouseUp